package com.sjp.demo.rpc;

import com.sjp.demo.rpc.provider.SpringConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {

        //HelloService helloService = new HelloServiceImpl();
        //RpcProxyServer rpcProxyServer = new RpcProxyServer();
        //Map<String, Object> map = new HashMap<>();
        //map.put(HelloService.class.getName(), helloService);
        //rpcProxyServer.publish(9001, map);


        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        context.start();

    }
}
